package com.qimo.zuoyeoa.entity;

import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class Contact {
    private int id;
    private int userId;
    @NotBlank
    @Size(max = 100, message = "不能超过100")
    private String name;
    @NotBlank
    private String sex;
    @NotBlank
    @Size(max = 100,message = "电话长度不能超过100")
    private String mobile;
    @Email
    private  String email;
    private  String qq;
    private String weixin;
    @Size(max = 100,message = "不能超过100个字")
    private String company;
    @Size
    private  String address;
    @Size(max = 50,message = "长度不能超过50")
    private  String postCode;
}
